﻿#region

using System;
using System.IO;

#endregion


namespace OMS.Ice.T4Generator.Tutorial
{
    internal class Part1
    {
        public static void Generate()
        {
            IGenerator generator = new Generator();

            var stream = new MemoryStream();
            var textWriter = new StreamWriter( stream );

            generator.Generate( Path.Combine( AppDomain.CurrentDomain.BaseDirectory, @"Part1\Part1.t4" ), textWriter );

            stream.Seek( 0, SeekOrigin.Begin );
            var textReader = new StreamReader( stream );

            var generatedText = textReader.ReadToEnd();
        }
    }
}
